package com.shenbao.service.impl;

import com.shenbao.beans.ProjectState;
import com.shenbao.dao.ProjectStateMapper;
import com.shenbao.service.IProjectStateService;

import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

@Service("ProjectStateServiceImpl")
public class ProjectStateServiceImpl implements IProjectStateService {
    @Resource
    public ProjectStateMapper projectStateMapper;

    public int deleteByPrimaryKey(Integer id) {
        return projectStateMapper.deleteByPrimaryKey(id);
    }

    public int insert(ProjectState record) {
        return projectStateMapper.insert(record);
    }

    public int insertSelective(ProjectState record) {
        return projectStateMapper.insertSelective(record);
    }

    public ProjectState selectByPrimaryKey(Integer id) {
        return projectStateMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(ProjectState record) {
        return projectStateMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(ProjectState record) {
        return projectStateMapper.updateByPrimaryKey(record);
    }

    public int getTotalCount() {
        return projectStateMapper.getTotalCount();
    }

    public int getCountByParameterName(String parameterName) {
        return projectStateMapper.getCountByParameterName(parameterName);
    }

    public List<ProjectState> selectByPaingAndCondition(Map<String, String> map) {
        return projectStateMapper.selectByPaingAndCondition(map);
    }

	@Override
	public List<ProjectState> getallprojectstates() {
		return projectStateMapper.getallprojectstates();
	}
}